<?php

namespace Modules\Auth\Database\Seeders;

use Database\Seeders\DatabaseSeeder;
use Illuminate\Database\Seeder;

use Illuminate\Support\Facades\Hash;
use Modules\Auth\Entities\Admin;

class AdminTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $admin = new Admin();
        $admin->username = 'admin';
        $admin->password = Hash::make("admin");
        $admin->is_super = 1;
        $admin->save();
        $this->call([
            DatabaseSeeder::class
        ]);
    }
}
